import request from '@/utils/request'

// 查询结构接口详细
export function selectTtStructureInterfaceById(id) {
  return request({
    url: '/fmea/common/structureInterface/' + id,
    method: 'get'
  })
}

// 新增结构接口
export function insertTtStructureInterface(data) {
  return request({
    url: '/fmea/common/structureInterface',
    method: 'post',
    data: data
  })
}

// 修改结构接口
export function updateTtStructureInterface(data) {
  return request({
    url: '/fmea/common/structureInterface',
    method: 'put',
    data: data
  })
}

// 删除结构接口
export function deleteTtStructureInterfaceById(id) {
  return request({
    url: '/fmea/common/structureInterface/' + id,
    method: 'delete'
  })
}
